#include <stdio.h>

struct student{
	char *name;
	int age;
	float score;
}stu1;

void print_info(struct student* stu);

int main()
{
	stu1.name="xiaoming";
	stu1.age=23;
	stu1.score=97;
	struct student stu2={"zhangsan",18,99};
	print_info(&stu1);
	print_info(&stu2);
	return 0;
}

void print_info(struct student* stu)
{
	printf("the name of stu is %s\n",stu->name);
	printf("the age of stu is %d\n",stu->age);
	printf("the score of stu is %f\n",stu->score);
}
